package sharemem

const (
	CAPTAIN_TYPE_DRAW_FIRST = 1		//第一次抽卡后
	CAPTAIN_TYPE_DRAW		= 2		//抽卡后
)

type BattleCaptain struct {
	Id      int32
	Type	int8
	Param	[BATTLE_PARAM_MAX1]int32
}

func (tmp *BattleCaptain) meminit() {
	var i int8
	tmp.Id = 0
	tmp.Type = 0
	for i=0;i<BATTLE_PARAM_MAX1;i++ {
		tmp.Param[i] = 0
	}
}
func (tmp *BattleCaptain) isUse() bool {
	return tmp.Id > 0
}
func (tmp *BattleCaptain) getId() int32 {
	return tmp.Id
}

func Get_config_captain(id int32) *BattleCaptain {
	v, ok := GetConfigBattleCaptainMap()[id]
	if !ok {
		return nil
	}

	return v
}
